package M807;
//第九题
public class M80709 {
    public static void main(String[] args) {
        for(int i=100;i<=999;i++){
             int bw=i/100;
             int sw=i/10%10;
             int gw=i%10;
             if((bw*bw*bw)+(sw*sw*sw)+(gw*gw*gw)==i){
                 System.out.println(i);
             }
        }
    }
}
